#include"test.h"

void test_push_pop()
{
	//assert(Seq);
	Seq Seq;
	InitSeqList(&Seq);
	PushBack(&Seq, 1);
	PushBack(&Seq, 2);
	PushBack(&Seq, 3);
	PushBack(&Seq, 4);
	PopBack(&Seq);
	Show(&Seq);
	PushFront(&Seq, 5);
	PushFront(&Seq, 4);
	PushFront(&Seq, 3);
	PushFront(&Seq, 2);
	PushFront(&Seq, 1);
	PopFront(&Seq);

	Show(&Seq);
}
void test_Find_Insert_Erase()
{
	Seq Seq;
	InitSeqList(&Seq);
	PushBack(&Seq, 1);
	PushBack(&Seq, 2);
	PushBack(&Seq, 3);
	PushBack(&Seq, 4);
	PushBack(&Seq, 5);
	Show(&Seq);
	printf("Find->%d\n",Find(&Seq, 0));

	Insert(&Seq, 1, 10);
	printf("Show->");
	Show(&Seq);
	Erase(&Seq, 1);

	Erase(&Seq,-1);
	printf("Erase->");
	Show(&Seq);

	system("pause");
}

//int main(void)
//{
//	
//	//test_push_pop();
//	test_Find_Insert_Erase();
//	getchar();
//
//}